package buzzword;

import json.JSONException;
import json.JSONObject;

public class Game {

	private int gameID;
	private String title;
	private String creator;
	private String gameCategory;
	
	public Game(JSONObject playerObject) throws JSONException{
		this.gameID = playerObject.getInt("gameid");
		this.title = playerObject.getString("title");
		this.creator = playerObject.getString("master");
		this.gameCategory = playerObject.getString("category"); 
		
	}
	
	public int getGameID(){
		return this.gameID;
	}
	
	public String getTitle(){
		return this.title;
	}
	
	public String getPlayer(){
		return this.creator;
		}
	
	public String getCategory(){
		return this.gameCategory;
	}
	
}
